package com.AIDS.AIDSweeper.server.model.DAO;

public abstract class DAOFactory {
	
	private static DAOFactory DAOInstance;
	
	public static DAOFactory instance() {
		try {
			if (DAOInstance == null)
				DAOInstance = GoogleDAOFactory.class.newInstance();
		} catch (InstantiationException e) {
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			e.printStackTrace();
		}
		return DAOInstance;
    }
 
    // Add your DAO interfaces here
    public abstract GameDAO getGameDAO();
    public abstract PlayerDAO getPlayerDAO();
    public abstract MineDAO getMineDAO();
    public abstract GamerDAO getGamerDAO();

}